package com.ctim.web.util.oss;

import com.aliyun.oss.OSSClient;
import com.ctfin.oss.alibaba.aliyun.oss.properties.OSSClientProperties;

public class OSSClientFactory {
    private static OSSClient ossClient = null;
    private OSSClientFactory() {
    }
    public static OSSClient getInstance() {
        if (ossClient == null) {
            // 可以使用ClientConfiguration对象设置代理服务器、最大重试次数等参数。
            // ClientConfiguration config = new ClientConfiguration();
            ossClient = new OSSClient(OSSClientProperties.ossCliendEndPoint,OSSClientProperties.key, OSSClientProperties.secret);
        }
        return ossClient;
    }
}